<form action="<?php echo base_url()?>contact/deleteAllInboxMail" method="POST" form="delall">
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


        echo '<table id="box-table-a" cellspacing="1" align="right" width="900px">';
        $bar="Inbox";//$FullName;
        //echo '<tr><td colspan=5 align=right class=bar>'.$bar.'</td></tr>';
        //$titleDeleteall = '<img src ="'.base_url().'templates/images/icons/delall.jpeg" width=40 height=30 title="Click here to del mail chose" onclick="return checkLink();"/>';
        //$delteall = anchor("contact/deleteAllInboxMail",$titleDeleteall);
        //echo "<tr><td colspan=5 align=left>$delteall</td></tr>";
        echo '<tr><td colspan=5 align=center class=bar>Inbox('.$total_rows.')</td></tr>';
        echo '<tr><td colspan=5 align=right class=pagination>'.$pagination.'</td></tr>';
        echo '
                
              <th>From</th>
              <th>Content</th>
              <th>File sent</th>
              <th>Action</th>
              ';
        foreach($query->result() as $row){
            //$images='<img src="'.base_url().'application/templates/images/'.$row->staff_avarta.'" width=100 height=70>';
            //$details = anchor("user/loadUpdateForm/$row->Staff_ID",$images);
            echo "<tr>
                        
                        <td class=\"row12\"><input type=checkbox name=checkbox[] id=checkbox[] value=$row->Contact_ID> $row->From</td>
                        <td class=\"row10\">$row->Content</td>
                    <td class=\"row12\">$row->AttachFile</td>";
            $titleReply = '<img src ="'.base_url().'templates/images/icons/reply.jpeg" width=35 height=30 title="Click here to reply"/>';
            $reply = anchor("contact/replyMail/$row->Contact_ID",$titleReply);
            $titleDelete = '<img src ="'.base_url().'templates/images/icons/delete.png" width=30 height=25 title="Click here to reply" onclick="return checkLink();"/>';
            $delte = anchor("contact/deleteInboxMail/$row->Contact_ID",$titleDelete);
            echo "<td class=\"row12\" align=\"center\">$reply $delte</td></tr>";
        }?>
            <tr><td colspan="4" align="left"><input type="submit" name="submit" value="Delete" id="submit"></td></tr>                           

    <?php
        echo '</table>';
?>
</form>
